/**   
* @Title: SpiderConfiguration.java
* @Package org.xaoyaoyao.spider.properties
* @Description: TODO
* @author xaoyaoyao
* @date Jan 25, 2019 3:05:07 PM
* @version V1.0   
*/
package org.xaoyaoyao.spider.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import lombok.Data;

/**
 * @ClassName: SpiderConfiguration
 * @Description: TODO
 * @author xaoyaoyao
 * @date Jan 25, 2019 3:05:07 PM
 * 
 */
@Data
@Component
@Configuration
@PropertySource("classpath:config.properties")
@ConfigurationProperties(prefix = "spider.config")
public class SpiderConfiguration {

	/** 下载线程时间间隔，单位：秒 **/
	private Long downloadInterval;

	/** 解析线程时间间隔，单位：秒 **/
	private Long parseInterval;

	/** 种子缓存时间，单位：秒 **/
	private Long seedCacheTime;

	/** 下载器线程数 **/
	private Integer downloadThreadNumber;

	/** 解析器线程数 **/
	private Integer parsedThreadNumber;

	/** 管理器线程数 **/
	private Integer manageThreadNumber;

	public SpiderConfiguration() {
		super();
	}
}
